<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="styles/style.css">
        <link rel="stylesheet" href="styles/theme/atom-one-dark.css">
        <title>例子39-ES6/7常用语法介绍</title>
    </head>

    <body>
        <pre>
            <code>
                // 例子39

                let o = {
                    name: 'Tom',
                    age: '18'
                }
                for(let key of Object.keys(o)) {
                    console.log([key, o[key]]); // 前后分别输出["name", "Tom"] ["age" "18"]
                }

            </code>
        </pre>
        <script src="scripts/libs/highlight.pack.js"></script>
        <script src="scripts/39.js"></script>
        <script>
            hljs.initHighlightingOnLoad();
        </script>
    </body>

</html>